package huajiu.com.serviceImpl;

import java.util.List;

import huajiu.com.dao.DoctorSolutionDao;
import huajiu.com.domain.DoctorSolution;
import huajiu.com.service.DoctorSolutionService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class DoctorSolutionSerivceImpl implements DoctorSolutionService {
	
	@Autowired
	private DoctorSolutionDao doctorSolutionDao;
	
	@Override
	public void save(DoctorSolution doctorSolution) {
		doctorSolutionDao.save(doctorSolution);
	}

	@Override
	public DoctorSolution isThere(String doctor) {
		return doctorSolutionDao.selectByDoctor(doctor);
	}

	@Override
	public List<DoctorSolution> getDoctorSolutions() {
		return doctorSolutionDao.getDoctorSolutions();
	}

}
